



<template>
    <view class="smu-sempty smu-center smu-default-text" :style="{
      marginTop:'0px',
      paddingTop:isPadding?'150px':''}">
    <view :class="'smu-'+classType+'-empty'"></view>
    <view style="margin-top:20px" :style="{
      color:nameColor

    }">{{ name }}</view>
    <view :style="{
      borderColor:theme.primaryColorPure,
      color:plain?theme.primaryColorPure:'#fff',
      background:plain?'':theme.primaryColorPure
    }" class="btn1" v-if="isShowBtn" @click="jump">
      {{ btnText }}
    </view>
</view>

</template>
    
  <script>
  let s;
    export default {
      
      props: {
        nameColor:{
          type:String,
            default:'#999ca7',
        },
        isPadding:{
          type:Boolean,
          default:true
        },
        plain:{
          type:Boolean,
          default:true
      },
        paramObj:{
          type:Object,
          default:{}
        },
        path:{
            type:String,
            default:'',
        },
        isShowBtn:{
            type:Boolean,
            default:false,
        },
        btnText:{
            type:String,
            default:'去逛逛',
        },
        classType:{
            type:String,
            default:'order',
        },
        name:{
            type:String,
            default:'暂无订单',
        }
      },
      data() {
        return {
          loading:true,
          customBar:0,
          statusBar:0,
          platform:'web',
          theme:{},
          isShowPop:false
        }
      },
      async created(){
        s = this
        s.$utils.ui.getSystemBaseSetting(s)
        s.$utils.ui.getSystemPageTheme(s)
       console.log(s.platform,'aaaaaaa')
        s.loading = false
      },
      methods: {
        show(){
            s.isShowPop = true
        },
       jump(){
            s.$u.route({ url: s.path, params: s.paramObj })
       }
      }
    }
  </script>
  <style lang="scss" scoped>
.smu-sempty{
    .btn1{
    height: 36px;
    vertical-align: middle;
    line-height: 36px;
    text-align: center;
    border: 1px solid #fd463e;
    border-radius: 31px;
    font-size: 14px;
    color: #fd463e;
    background: #fff;
    margin: 0 auto;
    margin-top: 14px;
    padding: 0 34px;
    font-weight: 700;
    }
}
</style>
    